package com.example.demo.controller;

import com.example.demo.controller.data.ReturnData;
import com.example.demo.sevice.BannerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class BannerController {
    @Resource
    BannerService bannerService;
    @GetMapping("/getBanner")
    public ReturnData getBanner() {
        return  bannerService.getBanner();
    }
}
